package com.njtoyo.taxi.admin.mapper.master.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.njtoyo.taxi.admin.mapper.master.enums.DriverChangeInformationReviewCategory;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 司机变更信息审核
 * </p>
 *
 * @author Dell
 * @since 2021-11-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="DriverChangeInformationReview对象", description="司机变更信息审核")
public class DriverChangeInformationReview implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "司机ID")
    private Long driverId;

    @ApiModelProperty(value = "要修改信息的类型 0:plate_number[车牌号]，1:driver_name[司机姓名],2:company[公司],3:mobile_number[手机号]")
    private DriverChangeInformationReviewCategory category;

    @ApiModelProperty(value = "变更的值")
    private String changeValue;

    @ApiModelProperty(value = "是否已审核")
    private Boolean isVerified;

    @ApiModelProperty(value = "审核时间戳")
    private Integer verifiedTimestamp;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createdAt;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updatedAt;


}
